package org.azj.ImageEditor;

import java.io.File;

public class AddPatientPreparer extends ImagePreparer {

	@Override
	public String prepare(String targetFolder, String filePath) throws Exception{
		File file = new File(filePath);
		String newPath = "";
		
		if (file.exists()) {
			// 如果文件存在，则直接copy过去
			newPath = targetFolder + "\\" + filePath.hashCode() + ".jpg";
			super.copy(filePath, newPath);
		}
		
		return newPath;
	}

}
